=====================================================
 : TwitterPosting
 : 1.2
-----------------------------------------------------
 : MSW
-----------------------------------------------------
  : http://0-web.ru
=====================================================

  1.0  1.1
1. : /engine/inc/editnews.php
:
=====================================================
$db->query( "SELECT id, autor, approve, tags
=====================================================

 
=====================================================
, date
=====================================================

:
=====================================================
$item_db[3] = $row['approve'];
=====================================================

 :
=====================================================
$item_db[4] = $row['date'];
=====================================================


  1.1  1.2
1.          ,  :
   /engine/data/config.twitter.php

2. ( DLE 9.4) : /engine/inc/editnews.php
:
=====================================================
$db->query( "SELECT id, title, autor, category, approve, tags
=====================================================

 
=====================================================
, date
=====================================================

:
=====================================================
$item_db[5] = explode( ',', $row['category'] );
=====================================================

 :
=====================================================
		$item_db[6] = $row['date'];
=====================================================

:
=====================================================
	if($approve && ($approve!=$item_db[3] || $item_db[4]!=$thistime) ) {
=====================================================

 :
=====================================================
	if($approve && ($approve!=$item_db[3] || $item_db[6]!=$thistime) ) {
=====================================================





1.    

2.  :
      dle_     .
=====================================================
INSERT INTO `dle_admin_sections` (`name`, `title`, `descr`, `icon`, `allow_groups`) VALUES
('twitter', 'TwitterPosting', '   Twitter', 'twitter.png', '1');
=====================================================

3.   : https://twitter.com/

4.    : https://dev.twitter.com/
   :
=====================================================
http://0-web.ru/dle/free-mod-dle/175-twitterposter-v10.html
=====================================================

5.          .

6. : /engine/modules/addnews.php
:
=====================================================
if( $approve ) clear_cache();
=====================================================

 :
=====================================================
			if( $approve ) {
				#****** TwitterPosting by MSW ******#
				$add_news_from = "site";
				include ENGINE_DIR.'/modules/twitter.php';
				#****** TwitterPosting by MSW ******#
				clear_cache();
			}
=====================================================


7. : /engine/inc/addnews.php
:
=====================================================
clear_cache();
=====================================================

 :
=====================================================
	#****** TwitterPosting by MSW ******#
	if($approve) {
		$add_news_from = "admin";
		include_once ENGINE_DIR.'/modules/twitter.php';
	}
	#****** TwitterPosting by MSW ******#
=====================================================


8.1. ( DLE >= 9.4) : /engine/inc/editnews.php
:
=====================================================
$db->query( "SELECT id, title, autor, category, approve, tags
=====================================================

 
=====================================================
, date
=====================================================

:
=====================================================
$item_db[5] = explode( ',', $row['category'] );
=====================================================

 :
=====================================================
		$item_db[6] = $row['date'];
=====================================================

:
=====================================================
clear_cache();
=====================================================

 :
=====================================================
	#****** TwitterPosting by MSW ******#
	if($approve && ($approve!=$item_db[3] || $item_db[6]!=$thistime) ) {
		$add_news_from = "edit";
		include_once ENGINE_DIR.'/modules/twitter.php';
	}
	#****** TwitterPosting by MSW ******#
=====================================================


8.2. ( DLE <= 9.3) : /engine/inc/editnews.php
:
=====================================================
$db->query( "SELECT id, autor, approve, tags
=====================================================

 
=====================================================
, date
=====================================================

:
=====================================================
$item_db[3] = $row['approve'];
=====================================================

 :
=====================================================
		$item_db[4] = $row['date'];
=====================================================

:
=====================================================
clear_cache();
=====================================================

 :
=====================================================
	#****** TwitterPosting by MSW ******#
	if($approve && ($approve!=$item_db[3] || $item_db[4]!=$thistime) ) {
		$add_news_from = "edit";
		include_once ENGINE_DIR.'/modules/twitter.php';
	}
	#****** TwitterPosting by MSW ******#
=====================================================


9.   
=====================================================
http://0-web.ru/
=====================================================